<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="./lib/nprogress/nprogress.css">
  <link rel="stylesheet" href="./lib/bootstrap-validator/css/bootstrapValidator.min.css">
  <link rel="stylesheet" href="./css/common.css">
  <title>淘乐购-一级分类</title>
</head>

<body>
  <div class="lt-aside bg-body">
    <div class="band">淘乐购37</div>
    <div class="user">
      <img src="./images/default.png" alt="">
      <p>超级管理员</p>
    </div>
    <div class="nav">
      <ul>
        <li><a href="./user.html"><span class="glyphicon glyphicon-user"></span> 用户管理</a></li>
        <li class="nav-cate">
          <a href="javascript:;"><span class="glyphicon glyphicon-list"></span> 分类管理</a>
          <ul class="second show">
            <li class="current"><a href="./one.html">一级分类</a></li>
            <li><a href="./two.html">二级分类</a></li>
          </ul>
        </li>
        <li><a href="./product.html"><span class="glyphicon glyphicon-tag"></span> 商品管理</a></li>
      </ul>
    </div>
  </div>
  <div class="lt-main">
    <div class="m-topbar">
      <a href="javascript:;" class="menu pull-left"><span class="glyphicon glyphicon-align-justify"></span></a>
      <a href="#" class="logout pull-right" data-toggle="modal" data-target="#myModal"><span
          class="glyphicon glyphicon-log-out"></span></a>
    </div>
    <div class="m-content">
      <!-- 路径导航 -->
      <ol class="breadcrumb">
        <li><a href="./index.html">管理系统</a></li>
        <li>分类管理</li>
        <li class="active">一级分类</li>
      </ol>

      <!-- 添加分类 -->
      <button type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal2">
        添加分类
      </button>

      <!-- 分类表格 -->
      <table class="table table-bordered text-center cate-info mt-20 table-hover">
        <thead>
          <tr>
            <th>序号</th>
            <th>一级分类名</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>1</td>
            <td>户外馆</td>
          </tr>
        </tbody>
      </table>

      <!-- 分页 -->
      <nav aria-label="Page navigation" class="pull-right">
        <ul class="pagination">
          <li>
            <a href="#" aria-label="Previous">
              <span aria-hidden="true">&laquo;</span>
            </a>
          </li>
          <li class="active"><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li>
            <a href="#" aria-label="Next">
              <span aria-hidden="true">&raquo;</span>
            </a>
          </li>
        </ul>
      </nav>
    </div>

  </div>

  <!-- 退出模态框 -->
  <!-- Modal -->
  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-sm" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
              aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="myModalLabel">温馨提示</h4>
        </div>
        <div class="modal-body">
          <p class="red"><span class="glyphicon glyphicon-info-sign"></span>您确定要退出后台管理系统吗</p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
          <button type="button" class="btn btn-primary btn-logout">退出</button>
        </div>
      </div>
    </div>
  </div>

  <!-- 添加分类模态框 -->
  <!-- Modal -->
  <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-sm" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
              aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="myModalLabel">添加分类</h4>
        </div>
        <div class="modal-body">
          <form id="form1">
            <div class="form-group">
              <input type="text" class="form-control" name="categoryName" placeholder="请输入一级分类">
            </div>
          </form>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
          <button type="submit" form="form1" class="btn btn-primary btn-adds">添加</button>
        </div>
      </div>
    </div>
  </div>

  <script type="text/html" id="tmp">
    {{ each rows v i }}
      <tr>
        <td>{{ (page-1)*size+i+1 }}</td>
        <td>{{ v.categoryName }}</td>
      </tr>
    {{ /each }}
  </script>
</body>

<script src="./lib/jquery/jquery.min.js"></script>
<script src="./lib/bootstrap/js/bootstrap.min.js"></script>
<script src="./lib/nprogress/nprogress.js"></script>
<script src="./lib/bootstrap-paginator/bootstrap-paginator.min.js"></script>
<script src="./lib/artTemplate/template-web.js"></script>
<script src="./lib/bootstrap-validator/js/bootstrapValidator.min.js"></script>
<script src="./js/isLogin.js"></script>
<script src="./js/common.js"></script>
<script src="./js/one.js"></script>

</html>